﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ElingOA6_Admin_DSJCJ.Model
{
    /// <summary>
    /// Paper:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class Paper
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public Paper()
        {
        }
        #region Model
        /// <summary>
        /// 问卷类别
        /// </summary>
        public string FPaperClsNo
        {
            set;
            get;
        }
        /// <summary>
        /// 问卷标题
        /// </summary>
        public string FTitle
        {
            set;
            get;
        }
        /// <summary>
        /// 问卷内容简述
        /// </summary>
        public string FContent
        {
            set;
            get;
        }
        /// <summary>
        /// 问卷记名
        /// </summary>
        public string FIsRecordName
        {
            set;
            get;
        }
        /// <summary>
        /// 问卷开始日期
        /// </summary>
        private DateTime? fbegindate;
        /// <summary>
        /// 问卷开始日期
        /// </summary>
        public DateTime? FBeginDate
        {
            set { fbegindate = value; }
            get { return fbegindate; }
        }
        /// <summary>
        /// 问卷结束日期
        /// </summary>
        private DateTime? fenddate;
        /// <summary>
        /// 问卷结束日期
        /// </summary>
        public DateTime? FEndDate
        {
            set { fenddate = value; }
            get { return fenddate; }
        }
        
        /// <summary>
        /// 问卷调查结果公开
        /// </summary>
        public string FResultIsOpen
        {
            set;
            get;
        }
        /// <summary>
        /// 父编号
        /// </summary>
        public decimal FPaperId
        {
            set;
            get;
        }
        /// <summary>
        /// 公司编号
        /// </summary>
        public string FEntityNo
        {
            set;
            get;
        }
        /// <summary>
        /// 操作日期
        /// </summary>
        public DateTime FPubDate
        {
            set;
            get;
        }
        /// <summary>
        /// 操作部门
        /// </summary>
        public string FPubDeptNo
        {
            set;
            get;
        }
        /// <summary>
        /// 操作人
        /// </summary>
        public string FPubEmpNo
        {
            set;
            get;
        }
        /// <summary>
        /// IP地址
        /// </summary>
        public string FPubIp
        {
            set;
            get;
        }
        /// <summary>
        /// 问卷类型
        /// </summary>
        public string FPaperType
        {
            set;
            get;
        }

        		/// <summary>
		/// 是否参与人员IP控制
        ///Y - 是
        ///N - 否
		/// </summary>
		public string FIsVoteIPControl
		{
			set;
			get;
		}
		/// <summary>
		/// 是否查看人员IP控制
        ///Y - 是
        ///N - 否
		/// </summary>
		public string FIsLookIPControl
		{
			set;
			get;
		}

        #endregion Model

        #region 增加的字段
        /// <summary>
        /// 问卷类别名字
        /// </summary>
        private string _fpaperclsname;
        /// <summary>
        /// 问卷类别名字
        /// </summary>
        public string FPaperClsName
        {
            set { _fpaperclsname = value; }
            get { return _fpaperclsname; }
        }


        /// <summary>
        /// 格式化日期
        /// </summary>
        public string FBeginDateName
        {
            get
            {
                if (fbegindate.ToString() == "")
                {
                    return fbegindate.ToString();
                }
                else
                {
                    return DateTime.Parse(fbegindate.ToString()).ToString("yyyy-MM-dd");
                }
            }
        }

        /// <summary>
        /// 格式化日期
        /// </summary>
        public string FEndDateName
        {
            get
            {
                if (fenddate.ToString() == "")
                {
                    return fenddate.ToString();
                }
                else
                {
                    return DateTime.Parse(fenddate.ToString()).ToString("yyyy-MM-dd");
                }
            }
        }


        #endregion

    }
}
